package com.neo.community.commons.util;

public enum ResponseCode {
    SUCCESS(0, "成功"),
    FAILURE(-1,"失败"),
    ERROR(1, "出错"),
    NEED_LOGIN(10, "需要登录"),
    ACCESS_DENIED(3, "权限不足"),
    ILLEGAL_ARGUMENT(2, "非法参数");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
